package com.smartpro.mis.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@TableName("orders")
public class Orders extends Model<Orders> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "orderID", type = IdType.AUTO)
    private Integer orderID;
    /**
     * 订单号
     */
    private String orderNumber;
    private String name;

    /**
     * 商品ID
     */

    private int productID;

    /**
     * 团购ID
     */
    private int groupBuyID;

    public int getGroupBuyID() {
        return groupBuyID;
    }

    public void setGroupBuyID(int groupBuyID) {
        this.groupBuyID = groupBuyID;
    }

    public int getPriceID() {
        return priceID;
    }

    public void setPriceID(int priceID) {
        this.priceID = priceID;
    }

    private int priceID;
    /**
     * 成单时间
     */
    private String createTime;
    /**
     * 用户id
     */
    private Integer userID;
    /**
     * 孩子姓名
     */
    private String childName;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 订单有效状态,0:有效,1:无效
     */
    private Integer isValid;
    /**
     * 订单退款状态,0:申请退款，1:退款完成,2:无需退款
     */
    private Integer refundStatus;
    /**
     * 订单邮寄状态,0不需邮寄,1已邮寄,2未邮寄
     */
    private Integer postStatus;
    /**
     * 邮递公司名称
     */
    private String postCompanyName;
    /**
     * 邮递单号
     */
    private String postNumber;

    public String getPostCompanyName() {
        return postCompanyName;
    }

    public void setPostCompanyName(String postCompanyName) {
        this.postCompanyName = postCompanyName;
    }

    public String getPostNumber() {
        return postNumber;
    }

    public void setPostNumber(String postNumber) {
        this.postNumber = postNumber;
    }

    /**
     * 立即购买价
     */
    private BigDecimal instantPrice;
    /**
     * 团长价
     */
    private BigDecimal leaderPrice;
    /**
     * 团购价
     */
    private BigDecimal groupPrice;
    /**
     * 数量
     */
    private Integer numberOfProduct;
    /**
     * 总价
     */
    private BigDecimal totalAmount;
    /**
     * 合作机构
     */
    private String belongToCompany;
    /**
     * 邮寄地址
     */
    private String address;
    /**
     * 修改时间
     */
    private String modifyTime;
    /**
     * 操作员id
     */
    private Integer operatorID;


    public Integer getOrderID() {
        return orderID;
    }

    public void setOrderID(Integer orderID) {
        this.orderID = orderID;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public String getChildName() {
        return childName;
    }

    public void setChildName(String childName) {
        this.childName = childName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(Integer refundStatus) {
        this.refundStatus = refundStatus;
    }

    public Integer getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(Integer postStatus) {
        this.postStatus = postStatus;
    }

    public BigDecimal getInstantPrice() {
        return instantPrice;
    }

    public void setInstantPrice(BigDecimal instantPrice) {
        this.instantPrice = instantPrice;
    }

    public BigDecimal getLeaderPrice() {
        return leaderPrice;
    }

    public void setLeaderPrice(BigDecimal leaderPrice) {
        this.leaderPrice = leaderPrice;
    }

    public BigDecimal getGroupPrice() {
        return groupPrice;
    }

    public void setGroupPrice(BigDecimal groupPrice) {
        this.groupPrice = groupPrice;
    }

    public Integer getNumberOfProduct() {
        return numberOfProduct;
    }

    public void setNumberOfProduct(Integer numberOfProduct) {
        this.numberOfProduct = numberOfProduct;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getBelongToCompany() {
        return belongToCompany;
    }

    public void setBelongToCompany(String belongToCompany) {
        this.belongToCompany = belongToCompany;
    }

    public int getProductID() {
        return productID;
    }

    public void setProductID(int productID) {
        this.productID = productID;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getOperatorID() {
        return operatorID;
    }

    public void setOperatorID(Integer operatorID) {

        this.operatorID = operatorID;
    }

    @Override
    protected Serializable pkVal() {
        return this.orderID;
    }

    @Override
    public String toString() {
        return "Orders{" +
        "orderID=" + orderID +
        ", orderNumber=" + orderNumber +
         ", groupBuyID=" + groupBuyID +
        ", productID=" + productID +
        ", priceID=" + priceID +
        ", name=" + name +
        ", createTime=" + createTime +
        ", userID=" + userID +
        ", childName=" + childName +
        ", mobile=" + mobile +
        ", nickName=" + nickName +
        ", isValid=" + isValid +
        ", refundStatus=" + refundStatus +
        ", postStatus=" + postStatus +
                ", postCompanyName=" + postCompanyName +
                ", postNumber=" + postNumber +
        ", instantPrice=" + instantPrice +
        ", leaderPrice=" + leaderPrice +
        ", groupPrice=" + groupPrice +
        ", numberOfProduct=" + numberOfProduct +
        ", totalAmount=" + totalAmount +
        ", belongToCompany=" + belongToCompany +
        ", address=" + address +
        ", modifyTime=" + modifyTime +
        ", operatorID=" + operatorID +
        "}";
    }
}
